package com.dfrz.ch10;

import java.util.Date;

/**
 * 作者：wangmaokang
 * 日期: 2021/4/20 10:56
 * 描述:
 */
public class Employee {
    public String name="";
    public double salary;
    public Date birtDate;

    public Employee() {
    }

    public Employee(String name, double salary, Date birtDate) {
        this.name = name;
        this.salary = salary;
        this.birtDate = birtDate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public Date getBirtDate() {
        return birtDate;
    }

    public void setBirtDate(Date birtDate) {
        this.birtDate = birtDate;
    }

    public String getDetails(){
      return "名字"+this.name;
    }
}
